fix Call-time pass-by-reference has been removed error