Fix shell bash bug