Fix for latest Nette