modify query range bug