Fix call-time pass-by-ref warning