Fixed pass by reference error in basic functions