Fixing issue with char datatype