Bug discovered by using set -e