Fix problem with Key formatting. It now has attribute name instead of HashKeyElement