fix position bug