minor fixes in template