fixed mismatch pointer length of a few functions