fixing swig bug