Angularjs model value setting fix