fix typerror for remove_unconfirmed_requests