Items deletion after refreshing with shorter list

Loop index does not get decreased when item is deleted