Fixing bug in page location code.