fixed merge and multi_merge