Bug in the C++ -> C callbacks.