fixes issue where lets within def!s wer being GCed