Fixes crash during the second run of a failing recursive module