Fix updating with an array of references