Fixed issue when wrong file name entered