fix hangs on anonymous code blocks