[engine] rubbos: fix some bugs