Fix bug for solr dir