Fixed looping through subscriptions: decreasing current index and length of array after removal