Fixed Nette 2.0 compatibility