Fixed: temp file is removed.