Fixed bug in from_dict not using the proper key