fix index diff patches