Temporary fix for crashing on Windows