Fix bug when missing file.