Fixed file select dialog bug