fixed reorder bug