DetailView bug fix