Fix invalid assert