Fix bug in bulk role clearing