Fix bug for cond