account for scope destroy changing element