fix role change detection