Fixed merge of tables