fix update[0] is null