Fix bash errors