Fixed file check.