Fix getPosition