fix issue with static pages