Clears dead actions
Fixed CopyEntity