Fix crash bug in prog command echo