Bugfix for retrieval of Key from dict