fix swig template does not work on production