Fixed compatibility with text module