fix bridge flag and init return