Export leads to csv properly