Fix update pending logic