Fix error on deletion of roles