Fixing file selection bug.