Bug fix on detail view