fix self.instances method