Fix Update Activity

Fix the function update on activities