fix incorrect assert