Fixed template detection for orderedRS