Added a reset for the query