Fixed problem assert statement