fixed the assert issue