Added compatibility with nette 2.2