add a debug message, and an extra check .. should differentiate why this crash is happened.