Fix go functions