buggy version: compile template failed