fixed assert bug