fix query history, but no plot