fix bug: "Unable to register extension "pagerfanta" as extensions have already been initialized."