fix saving to wrong attr
fix bug: # for some reason, model_to_dict converts the value to a string