core: Correct parsing of MODE lines.