corrected bash errors