Bug in update code.