fixed bug where I had removed an assert