fix incorrect column mapping

message table has 3 `<th>` in header, but 4 `<td>` in body.
so I just add 1 `<th>` into header. This will fix #468.

and I find wrong `if` in logic and remove it.