fixed assert problem