Fixed GraphTemplate bug