[Restore] Fixed fopen related