Fixed bash issues