fixed graph template bug