Update GateFactory.php