Fix pass by ref