fix for latest Nette