Fix call-time pass-by-reference error