fixed bash errors