fix broken session after wipe