fix a tmppath bug