Fix deletion cascading
Fix port for activity script