Fixed a bug which caused that merging mode was always activated