A quick-hack fix attempt. I'm not sure if nEntries/mxEntries fit the apparent(?) naming scheme of using singular rather than plural form.

Note also that it might make sense to change the nEntry variable in page_timeline to mxEntry.