Fix bugs on user bus

Fixed a few bugs in the js.