Fixing removal of activity