Fixed condition bug.