bridge.sh: fix minor bugs
bridge.sh: fix minor bug