fixed indices in idea in delete