Fixed issue #1574
Merge branch 'develop' of https://github.com/orientechnologies/orientdb into develop