Fixed the extension and made it compatible with Contao 3