Fixing dumb query restraint.