swig bug fixed