fix position update