Correcting bad datatype