Dialog mask div fix for caching mode