Fix: BASH bugs