deleted activities reference fix