fixing balance bridge fsm states mask