Fixed bash script