diff --git a/src/main/java/org/olat/core/commons/services/commentAndRating/impl/ui/_content/userCommentsAndRatings.html b/src/main/java/org/olat/core/commons/services/commentAndRating/impl/ui/_content/userCommentsAndRatings.html
index 2df0f4ed84ba9878e7d971615232de534b0ec264..7dced3b07d7f93070cc4a61b659bfa402475275d 100644
--- a/src/main/java/org/olat/core/commons/services/commentAndRating/impl/ui/_content/userCommentsAndRatings.html
+++ b/src/main/java/org/olat/core/commons/services/commentAndRating/impl/ui/_content/userCommentsAndRatings.html
@@ -1,12 +1,12 @@
 <div class="b_ratings_and_comments">
 	#if ($enableRatings)
 	<div id="b_rating_wrapper_$viewIdent" class="b_rating_wrapper">
-		#if($r.render("ratingUserC"))
+		#if($r.available("ratingUserC"))
 			<div id="b_rating_$viewIdent" style="display: none">
 			$r.render("ratingUserC")
 			</div>
 		#end
-		#if($r.render("ratingAverageC"))
+		#if($r.available("ratingAverageC"))
 			$r.render("ratingAverageC")
 		#end
 	</div>