fixes update method bug. now works'