fixed issue with error page displaying when trying to create a new query