fixed bug in expand-template being misnamed