fix 'check-available-stock' #533