Fixes bugs with solr deployments