fix bug: update error when cell is nil