fix leading space in template