fixed tr error