fixed problem with two objects sharing mutable state