Fix bug in generated go files