replaced bad assertion