Fixing datatype mismatch.