Fixed so that the view paints the model