Fix the synching between model and view.