issue #5527: fix jsb namespace bugs