fix staticpage selected_id and selected_name

related to array $sp_defpages_pop loop smartification