Fixed compatibility with dev Nette