Fixed incorrect behaviour for listing.get_available_units