fixed pass by reference error
Merge pull request #769 from nZEDb/jonnyboy

fixed pass by reference error