Fixed a bug in the DisplayItem logic.