fixed autoselect bug on pages and preview