Fixed runtime errors and things not being rendered for detail page.