added workaround for crash on windows