Fixed part of mongo interface errors.