Fixed Violation to_dict()

My bad =/