fix wipe bug