Fix reorganizeFile() and reorganizePage()