Fixed deleteRole to work correctly client side