fix gist saving