This, combined with line 73 leads to disaster as you're calling a function of `ListModeBase` on a potentially different object (like a prefix mode).
You can do several things: either find out whether it's a non-prefix listmode and then do the cast, or just switch around the order of the checks later. Or, do it like m_check.