Fix issue with bad query