fix detail pages