fixes consistency issue in index commits