fixed bug: edit index without any other info makes the program stuck