fixing error in callbacks for gist