Right now module allows prompt to create references to itself by referencing other prompt which references back to first prompt creating recursion and resulting in fatal error.
Steps to reproduce
Proposed resolution
Before referencing another prompt it has to check if that prompt segments within it references back to this prompt.
Or another solution could be stopping recursion as it happens (in some kind of way).