bug fix for item update