fixed empty tmp file business