Bug fixes on CSV bulk export for leads