Fix Nette compatibility