fix bug forgot to set -e