Fix the issue brought by the refine.