Wait, first things first: which game are you talking about? You responded in the general forums: are you talking about KH2, Birth by Sleep, or the Nintendo DS coded?
I'm also not clear what's the matter. You lock on to a target and then suddenly can't hit them? Can you be more specific?