Inspect graph bug fix

Removed a recent change targeted at preventing memory leaks. It created more problems than it fixed.