Fix the layout of history table