Fixes to UpdateStockPrice function