fixed the bug of error port for echo demo