Some changes in deleting of rights.
Remove NullException from Activity class.