fixing detail pages