fixed a bug that raised in an ISE if there is no file