bugfix with type of mongo_port