fixed removeActivity by foreignId
release the version with working removal by foreign id
merged