Fix for file check