Fix adding/removing stocks.
Avoid needless looping when deleting stocks.