Fixed bugs with position.