Try to fix pass by reference error