Fix position errors