Updating bug where diff changes at an incorrect time