fix infer marker reordering problem