fixed bug with head position