correct typo in bash loop