Fix mongo errors import