fix for getPosition()