Fixed adding stop subs and deleting stop subs

Now adding and deleting stop subs works.