fix codex errors extraction