Fix AngularJS scope when updating model variable