fix assert statement