Fix activities were not deleted correctly when updating project