Corrected the behaviour of the Gateway param of type config