Make compatible with stable nette