Fixed call-time pass-by-reference errors.