Fixed compatibility with 2.1-dev nette