Fix bugs after jQuery update in ban history.