fix (1_7.W001) MIDDLEWARE_CLASSES is not set.