fix: two windows opened for choosing a file.