Fixed bug with opening a filter file and log file