Error when merging