Fix the instances method bug so that it copes with mulitple instances