Fix appveyor crash