fixed ng model binding errors