updating an increment bug