fix the echo && exit bug