remove stale references