fix for DOM Exception 11 when the app in uncached