correct navigation to fields in anonymous classes
possible NPE fix