Currently, code throws `keyerror` from `when_deactivated()` sometimes
Currently, code throws
keyerrorfromwhen_deactivated()sometimes