fix an assert