Fixed another datatype mismatch bug