added 'AVAILABLE_STOCK' and fix issue #526