Fixed selling subclaim and reset permissions when buying a claim.