fix wrong assertion