Fixed leak of a hash when checking out by hash