But you're never assigning self._preferences_window.