fixed bug that crashes on non existing file