fix Model <-> UI sync