two-way binding bugfix