fix issue with loading pages