Fix for using update.attributes with list indexes.