Fixed back compatibility with Nette