fix update

- fix the update function in the backend. was a typo