Fix #22. ensure that object are not copied by value.