Fixes position glitch.