Fix latest Nette compatibility