fix #3396: crash on logging event cache