update function runs multiple times. what you need to do is to check that you have all tge properties you need and that your function was never executed (remember that you can add properties to instance.data).

edit: it’s instance.data