Bugs fixes

- Fixed bug with not finding query from file