Fixing the condition