fix two-way binding issue

Where is the setActive function? Did you already have that and use it here?