Fixing recursive blocks merging.