detect erroneous expressions in expand eval