small fixes in stock-controller