fixing warning when file doesn't exists