fixed some Contao 3 compatibility issues