diff --git a/lib/puppet/pops/validation/checker3_1.rb b/lib/puppet/pops/validation/checker3_1.rb
index <HASH>..<HASH> 100644
--- a/lib/puppet/pops/validation/checker3_1.rb
+++ b/lib/puppet/pops/validation/checker3_1.rb
@@ -126,7 +126,7 @@ class Puppet::Pops::Validation::Checker3_1
     case o.left_expr
     when Model::QualifiedName
       # allows many keys, but the name should really be a QualifiedReference
-      acceptor.accept(Issues::DEPRECATED_NAME_AS_TYPE, o, :name => o.value)
+      acceptor.accept(Issues::DEPRECATED_NAME_AS_TYPE, o, :name => o.left_expr.value)
     when Model::QualifiedReference
       # ok, allows many - this is a resource reference
(#<I>) Fix failing validation.

Validation of deprecated resource references using QualifiedName
(i.e. a lower case bare word) instead of QualifiedReference (i.e.
an upper cased bare word) should have accessed the `value` of the
instructions `left_expr`, but instead did this on the instruction
itself.

This fixes one part of the issue #<I> which gives users a better clue
how to work around the issue.