fixed compatibility with stable nette