Fixed compatibility with nette