update with index nil errors