Fixed compatibility with Nette 2.0.x