Fixed wrong global middleware at boot() time