Fixes an error when appending data to a table