Fixed update indices in sumout method