Fix only variables should pass by ref