fixed file selection bug