Fixed crash due to non-exisiting files