Fixed runtime errors on previous StockManagementPanel changes