fixed bash script