Fix visit-ielm function.