remove empty last row for exported csv