fix bug in dedicated cell type detection