fix bug caused my dementia