fixed some recovery bugs