Fix badge update.