Small fix for update method