fix bug--delete incorrect file(index error)