jquery/template render bug fixed