fix the assert invoke