corrected updatePosition()