Solve condition bug.