Fix substory deletion

This was the only way I found that fixed every case besides re-adding the substory controller.

----

Will close #328 
Let's go for this then. Can you add a comment here indicating why this is needed?