TSAGE: Fix upper bound of loop in R2R scene 1575