fixed wrong behaviour when repopulating the create index tree widget