fixed assert on line 93