bugfix: cache render function not template object