fix: inifite loop because page & base are undefined in parsePage