fixed an issue in -r caused by typo in the related fopen