fix some minor error in C API