fix a bug in Go support (reported in #32)