fix the coredump bug when select not existing file