bug fixes in from_dict() methods