rem_2pi, some case did not pass by the parameter by reference