amended bug in multi-page url code