bugfix: 'Cfg' object has no attribute 'memory_word_middlewares'