Fix wrong id Update code