Fix: small bugfix

Update method had a wrong variable name