Fix pass-by-reference