fix bad assertion