Fix a bug that requires template => '' when a source is specified