fix the render control in template