fix bug causing single page requests to fail