Improve the code about expression's valid domain.