fix of reset query