Passing the wrong instance around