Fixed comments call in to_dict()