fix resume file check