Minor fix, self.app now initialized to None