bug fix errors on no file