fixed graph compare problems