fix the detail view controller