Changing this to self.

The context of this changes and causes subtle bugs.