Fix for attribute in generated for labels