Fixed a Swig context issue