Fixed compatibility with newest Nette 2.1