remove invalid condition