fixed missing tr bug