self.settings was becoming None