fixed 3rd parameter in resolve_pageid