Fix invalid condition