Fixed compatibility with older nette