fix merge in index