fix echoerr issue