Made changes to deleting the container from list of containers in the session

Just searched through the list and did a splice at the location
If the current index is the one that you want to remove, wouldn't you remove the element before the one you intend to?