Fix bug in gist grammar