Fixes an array index out of bounds bug updating an ordered property.