Availability.trim fix