bug fix

fix condition formular