fix bash bug