Fixed query history clear