fix position set bug