fixes position ordering