handle undefined value in engine and jbind