[fix] add default for pages to prevent undef