fix wrong assert