fix bug about overwrite null