fix bad assert