fixed removeActivity by foreignId