Fix a problem that detail view always displays empty page.