update badge bug