fixed mongo bug
Merge branch 'master' into 1.0