Oops, incomplete regression of modes[] initialization.  This fixes.