Refine some expressions