fix for removing activity