Fixed diffindex and insert(maybe)