Fixing graph auto updating