Reorder refs for some reason.