detail view bug fix