+ fixed a bug in the C++ interface