fix issue #7: replace previous query results.

Found few more issues. Will fix those later.