fixes 2 way data-binding bug