fix reactive-model bug on Safari