fix reset query for edit link