fix a notice error in case the file does not exist anymore