fix for template splitting on any "#" sign