Fixed the condition.