fix don't set view value to null