Fix config bug.
Compute items display type.