fix pass-value-for-reference-argument issue