Fixes the detail view.