fixing min/max heap settings