Fix bug: forgot to recursively render templates