fix call by ref