fix array key on update page