fix bug with echo script