fixing circular references detected in go 1.2