fix the assert failure