fix gist history saving