Fixed some bugs where the Solr was no longer in sync with the lastest Query engine.