Fix type for window<%> for TR

Closes PR 14812