fix two-way binding issue