fix the leftover of temporary files