Fix pass by reference