fix bug stockRepo - 1