Fixed compatibility with nette

see https://github.com/nette/nette/commit/26192c65653c27978806f8e391ff22cad3e10764
Merge pull request #13 from PavelJurasek/patch-1

Fixed compatibility with nette