Passing by reference fixed