fix add condition bug