Fix variable passing by reference.