Fixed issue with first time stock fetching.

The code was messy and it created some issues when adding a stock to the list of values for the first time.