fix the bug regarding of bridge connection error at first time