Fixed pass-by-reference error.