Fix incorrect specs, fix template render bug.