fix a crash
turnoff debug log