Fixing bug in log_page_view().