fixing _temp_dir