(WCM-900) Fixed problem with templates rendering