recovery: fix assert