Fixing merging of single layer