handling some cases where there's cached DOM