diff --git a/web/js/uoj.js b/web/js/uoj.js
index 5bc4872..ba5ea48 100644
--- a/web/js/uoj.js
+++ b/web/js/uoj.js
@@ -524,17 +524,14 @@ $.fn.long_table = function(data, cur_page, header_row, get_row_str, config) {
}
$(table_div).append(
- typeof config.print_before_table === 'function' ? config.print_before_table() : ''
- ).append(
- $('
').append(
- $('').append(
- $('').append(header_row)
- ).append(
- tbody
- )
- ).append(
- typeof config.print_after_table === 'function' ? config.print_after_table() : ''
- )
+ $('')
+ .append(typeof config.print_before_table === 'function' ? config.print_before_table() : '')
+ .append(
+ $('')
+ .append($('').append(header_row))
+ .append(tbody)
+ )
+ .append(typeof config.print_after_table === 'function' ? config.print_after_table() : '')
);
var get_page_li = function(p, h) {