fixed pass by reference error which my local tests missed

;