fix compatibility with Nette 2.2