Fixed getPosition() type