Fix bug in generate deck event recording