Fix permalink issue with related posts.