fix bug with position