don't modify table directly to avoid exception in IE