Fix error in bash script