Fix bash setting bug