Fix startup error on Windows