Fixed problem with bulk export failing