Fixed a bug with queries

The maximum infraction was not being sent for all queries tests.