Bug fix: do not pass by reference.