render fix for templates