Fixed the condition