Fix problem of export in order to open into excel