$page_name issue with category and product pages

$page_name stays setled to 'index' in category and all children pages.