fix bug in generating framing error table