fixed .tmp issue