fix in tempname