Corrects value for label attribute.