Fixed looping through subscriptions

After removal of subscriber array index and length are decreased in order to loop through just existing array elements.