Updates self references to self.class