Fix call to new_session_event (this needs tests).