Fixed some issues with chain merging