Fix code movement bug in opening backup file.