Fixes to array update