Fixed nette 2.2 compatibility