Bug fix for detail page.