fixing annoying query attr filtering

Signed-off-by: Timothy Wood <tim@imaginesimplicity.com>