Fix a bug in resolve_stubs for parallel effects.