fix wipe method