Ruby Errors in Dynamic Components

Undo then Redo causes <TypeError: reference to deleted Entity>