Fixing the way that constraints are updated. Also, fixing a typo in the demo app.