Fixed an error in the stock template