Fixed passing by reference