fix templates for list boxes, fixes #419