fixbug: remove tmpfile whatever put file success.