fixed graph regeneration