Fixes issue with role deletion.