Fix bug when updating stocks prices