Fixed the bug that the bridge would be built both server and client side