fixed a bug where it would throw an error if neo4j!=true