Change the way to get container type.