Fixed some strange error when used with Nette 2.2