small fixes in second.sh