Fix error when update gists.