fix export()