Fix inconsistent handling of getPosition events.