Fixed bug where echo did not work due to data being overwritten.