fix instant crash on windows again (followup dc3b56a1 and 9d8d3178)