Issue #3178 few problems were fixed.
Merge branch 'develop' of github.com:orientechnologies/orientdb into develop