Fixed label creation condition.