fix case of open document classes, handle index problems with exceptions, fix reindexing of edited files