fixed mongo error