fix location bug in detail page.