fix bug where query debug mode is reverted when filters are added