rset the query after widget is done