fix a fatal error registering the admin page