Fix bugs with echo example.