fixed file check