fixed problems with position