Fixed row rearranging.