fixed undefined tr