ActiveAE: fix port comparison  in state machine