fix error in bash script