error correction in gateway.launch