Fixed compatibility with nette after https://github.com/nette/nette/commit/6a682d36f085f6f272255359c9d5fb78204f78a1