Solved crash when no file selected