Fixed explosion when no file is provided