fixed assert issue