reset query fix