fix for query block