Fixed lack of access check

Fixed lack of access check that would mean the main function wouldn’t
complete and thus not generate a page field.