fix collapse on detail view