fix table appending