Fixed placement of loop in proc.go