fixed bug when entering position