fixed a bug where the selected file would not be properly shown in firefox