Swig 3 fix