fix pass by reference issue
Merge pull request #1 from miguelbermudez/pass-by-ref-fix

fix pass by reference issue