Fix update judge