bugfix for fileselect