fix display by type bug