Fix update null issue