added fix for wsod on some pages