Fixed an issue with choosing output file.