Fix off by one with membership and copying from contract.storage.