fixes #4357: Removed template source from the header