Fixed backwards compatibility with older Nette