Fixed mongodb issue #5.