fix delete new file on cancel