Fix delay of file dialog start-up