Fix for nette 2.1