Fix html validation error in language page.
Fix bug in detection if a submission finished late.