fix to bash scripts