Bug Fix: selecting a file in the JFileChooser throws an exception