handle index updates properly when attribute changed