fixed bug in query handler where filters would always be disabled.