Fixed compatibility with nette master