Fix for the bug: "CallTargetForModules creates multiple params to set modules so there is ambiguous choice what module to pass to the target."