Fix bug that broke prevention of recursive instantiation

Issue #196