fix for activities DOM change