Set the key value after collapsing the share data, issue #35