fix the witable datatype mismatch problem