fixed error with swig.