fixed query reindex for query delete. added qa test.