more template fixes to make jade happy