Fixed an AttributeError on website and a deprecationwarning for middleware relocation.