Fixed the reorder bug