fix the crash