Fixed a SWIG related bug