Fix custom gateway spec