fixing min rule merging issue