Endomorphism rings and dual modules