fixed call by reference bug
Merge remote-tracking branch 'origin/master'