try to fix fiona writing bug