restore license working