Avoid crashing due to no file name