fix temp file name bug