fixed hbridgelib code errors