small fix for page_by_offset