fixed detail view bug