Fixed a possible bash variable bug