Fixed bug in SWIG interface (missing return).