Handling MID 0 in GatehouseFactory