Fixes error when file doesn't exist