Fix assert regression introduced with #194