fixed typecast error in csv