Use local instance instead of self.

This fixes an issue when App.reset() is called and a new instance is created.