tr custom attribute fix