Well, if it hurts, it's definitely wrong. I'm also having problems with the correct hand position on some chords depending on where I'm coming from and how fast I'm trying to change. What I'm doing to get rid of it, is doing the changes slowly and trying to feel and see where I'm going wrong and than adjusting accordingly. Once you've found the correct position (the one that's the most relaxing for the given chord), slowly increase the speed. If you're starting to go wrong again, adjust for it and don't change again before you're in the relaxed position. That should help your fingers to memorize the correct positions.