Fixed a bash-sim: replaced let with $(( ))