Fix regression for mergekey creation