Fix parallel code complete detection