fix problem with index export