fixed template inheritance bug in include helper