fixed sync bug in updating tablemodel