Fix altrows in addRowData changing the code in constructTr function. Thanks to leizhao4