fixed a assert statement