Fixing some semantic issues with the checking of parallel execution mode.