Assert was not working, fixed