Left out .ref on lastInstance.candidate.ref assignment