fix crash with self.selectedDebt == nil