ERROR: malformed dynamic template, missing END