fix pivot saving keys.