demo getAvailability fix.