fix bug in detail_page