Fix list access in update