bugfix for FileSelect.