Fix mealy transition table