Fix the checkFiles problem