fix CGAme::OnCleanup.