fix condition of bash