fix troubleshooting code in semantic blocks